package icegps.com.pingdj.map.bean;

import android.support.annotation.NonNull;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import icegps.com.pingdj.App;

/**
 * Created by 111 on 2018/2/28.
 */
@Entity
public class MapMeasureInfo implements Comparable<MapMeasureInfo> {
    @Id
    Long id;
    double max;//最大高度
    double min;//最低高度
    double ave;//平均高度
    double sum;//总高度
    double soilVolume;//土方量
    private int count;
    double currentAltitude;
    double area;

    double longitude;
    double latitude;
    double altitude;




    @Generated(hash = 1886121115)
    public MapMeasureInfo(Long id, double max, double min, double ave, double sum,
            double soilVolume, int count, double currentAltitude, double area,
            double longitude, double latitude, double altitude) {
        this.id = id;
        this.max = max;
        this.min = min;
        this.ave = ave;
        this.sum = sum;
        this.soilVolume = soilVolume;
        this.count = count;
        this.currentAltitude = currentAltitude;
        this.area = area;
        this.longitude = longitude;
        this.latitude = latitude;
        this.altitude = altitude;
    }




    @Generated(hash = 1388721983)
    public MapMeasureInfo() {
    }




    @Override
    public int compareTo(@NonNull MapMeasureInfo o) {
        return (int) (o.id - id);
    }




    public Long getId() {
        return this.id;
    }




    public void setId(Long id) {
        this.id = id;
    }




    public double getMax() {
        return this.max;
    }




    public void setMax(double max) {
        this.max = max;
    }




    public double getMin() {
        return this.min;
    }




    public void setMin(double min) {
        this.min = min;
    }




    public double getAve() {
        return this.ave;
    }




    public void setAve(double ave) {
        this.ave = ave;
    }




    public double getSum() {
        return this.sum;
    }




    public void setSum(double sum) {
        this.sum = sum;
    }




    public double getSoilVolume() {
        return this.soilVolume;
    }




    public void setSoilVolume(double soilVolume) {
        this.soilVolume = soilVolume;
    }




    public int getCount() {
        return this.count;
    }




    public void setCount(int count) {
        this.count = count;
    }




    public double getCurrentAltitude() {
        return this.currentAltitude;
    }




    public void setCurrentAltitude(double currentAltitude) {
        this.currentAltitude = currentAltitude;
    }




    public double getArea() {
        return this.area;
    }




    public void setArea(double area) {
        this.area = area;
    }




    public double getLongitude() {
        return this.longitude;
    }




    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }




    public double getLatitude() {
        return this.latitude;
    }




    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }




    public double getAltitude() {
        return this.altitude;
    }




    public void setAltitude(double altitude) {
        this.altitude = altitude;
    }




}
